package fr.uniscol.model;

import java.io.Serializable;

public class Departement implements Serializable {

	private long id = 0;
	
	private String codeInsee = null;
	
	private String codeMEN = null;
	
	private String libelleLong = null;

	private Academie academie = null;
	
	public Departement(){
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getCodeInsee() {
		return codeInsee;
	}

	public void setCodeInsee(String codeInsee) {
		this.codeInsee = codeInsee;
	}

	public String getCodeMEN() {
		return codeMEN;
	}

	public void setCodeMEN(String codeMEN) {
		this.codeMEN = codeMEN;
	}

	public String getLibelleLong() {
		return libelleLong;
	}

	public void setLibelleLong(String libelleLong) {
		this.libelleLong = libelleLong;
	}

	public Academie getAcademie() {
		return academie;
	}

	public void setAcademie(Academie academie) {
		this.academie = academie;
	}

	@Override
	public boolean equals(Object obj) {
		Departement d = (Departement) obj;
		return getId() == d.getId();
	}
}
